﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectLayout.aspx.cs" Inherits="Admin_portal_SelectLayout" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Select layout</title>
    <link href="../admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DataList ID="dl" runat="server" RepeatDirection="horizontal" RepeatColumns="3" OnItemDataBound="dl_ItemDataBound">
            <ItemTemplate>
                <table>
                    <tr>
                        <td><input type="radio" id='<%# DataBinder.Eval(Container.DataItem, "TempId") %>' name="layout" value='<%# DataBinder.Eval(Container.DataItem, "TempId") %>' /></td>
                        <td><asp:Image Width="150px" ID="imgThumb" runat="server" /><br /><asp:Literal ID="lblName" runat="server" /></td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
        <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text=" 确定 " />
    </div>
    <script type="text/javascript">
        var radio = document.getElementById('<%=Current %>');
        if (radio) { radio.checked = true; }
    </script>
    </form>
</body>
</html>
